div#lightgallery{
    overflow:hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-direction: normal;
    -webkit-box-orient: horizontal;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
    -moz-justify-content: flex-start;
    justify-content: flex-start;
}

div#lightgallery a{
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 33.3%;
    -moz-box-flex: 0;
    -moz-flex: 0 0 33.3%;
    -ms-flex: 0 0 33.3%;
    flex: 0 0 33.3%;
    max-width: 33.3%;
    padding: 0px 10px 0 0;
    margin-bottom: 10px;
    position: relative;
}

div#lightgallery a:hover{
    opacity: 1
}

div#lightgallery a:hover:after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    right: 10px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2
}

div#lightgallery a img{
    width: 100%;
    height: auto;
    /*object-fit: none;*/
    /*-o-object-fit: none;*/
    /*font-family: 'object-fit: none;';*/
}

@media (max-width: 700px) {
    div#lightgallery a{
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 50%;
        -moz-box-flex: 0;
        -moz-flex: 0 0 50%;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%
    }
}

@media (max-width: 450px) {
    div#lightgallery a{
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 100%;
        -moz-box-flex: 0;
        -moz-flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%
    }
}

@media screen and (max-width: 650px) {
    div#lightgallery a img{
        width: 100%
    }
}